package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ycf
 */
@Mapper
@Repository
public interface UserMapper {

    User getUserById(int id);

    List<User> getUserList();

    int addUser(User user);

    User getUserByUsername(String username);

    List<User> getUserLikeUsername(String username);

    String getQQByUsername(String username);
}
